home *** CD-ROM | disk | FTP | other *** search
- ; GVP IOExtender Install Script
- ; Version 1.0
- ; Original bly J.W. Lockhart ---- 21 February 1992
- ; Re-Write by Gary Nush -------- 06 July 1992
- ; Re-re-Write by Gary Nush -------- 13 July 1992
- ; Over-Write by Erik Quackenbush - 14 August 1992
- ; Update-Write by Steve Peoples ---- 20 January 1993
- ; Copyright (c)1993 by Great Valley Products, Inc.
-
- ; Written for use with Commodore's Installer, V1.23.
-
- ; Some useful variables
- (set disklab "GVP.Install") ; Source disk for new files
- (set disklab2 (cat disklab ":")) ; Source disk, with colon
- (set os_ver
- (/ (getversion) $0000FFFF)) ; version of AmigaDOS...
-
- ; If the user has booted from this floppy, we need to find out
- ; where the usual SYS: partition is. Try a few looks about the system...
- ; Currently looks for WB_2.x:, System2.0:, or dh0:. Ask user if we can't
- ; figure out where s/he boots from, and/or for confirmation.
- (set target (getassign "wb_2.x" 'd')) ; Device-only check.
- (if (= target "")
- (set target (getassign "System2.0" 'v'))) ; VolumeName-only check.
- (if (= target "")
- (set target (getassign "dh0" 'd'))) ; Device-only check.
- (if (= target "")
- (set target (getassign "System2.0"))) ; Logical assign check.
- (if (= target "")
- (set target (getassign "dh0"))) ; Logical assign check.
-
- ; If we're at Wit's End:
- (if (= target "")
- (set target @default-dest)) ; default destination
-
- ; Now, make absolutely, positively sure that we go to the right place.
- (set target (askdir (prompt "Which partition do you usually boot from?\n"
- "The required utilities should be installed there.")
- (help @askdir-help)
- (default target)))
-
- ; Install SetDevice command.
- (copyfiles (source (tackon disklab2 "GVP/IO"))
- (dest (tackon target "C"))
- (pattern "(setdev#?)")
- (infos) (confirm)
- (prompt "Shall I install the SetDevice command?")
- (help "You need SetDevice in order to set the IOExtender parallel and "
- "serial ports as system defaults.\n\n"
- @copyfiles-help))
-
- ; Install sys:l/gvpporthandler
- (copyfiles (source (tackon disklab2 "L"))
- (pattern "(gvpport#?)")
- (dest (tackon target "L"))
- (infos) (confirm)
- (prompt "The following MUST be installed in sys:L\n")
- (help "Gvpporthandler - the handler needed for proper\n"
- " operation of the on-board serial\n"
- " and parallel ports.\n "
- @copyfiles-help))
-
- ; Install sys:expansion/gvpio
- (copyfiles (source (tackon disklab2 "Expansion"))
- (dest (tackon target "Expansion"))
- (pattern "(Gvpi#?)")
- (infos) (confirm)
- (prompt "The following MUST be installed in sys:Expansion\n")
- (help "GvpIo - the device driver for the on-board serial\n"
- " and parallel ports.\n "
- @copyfiles-help))
-
- ; Install sys:gvp/IO/GVPIOCtrl, sys:gvp/IO/GVPSerial
- (copyfiles (source (tackon disklab2 "GVP/IO"))
- (dest (tackon target "Prefs"))
- (pattern "(GvpIO|GvpSer)#?")
- (infos) (confirm)
- (prompt "The following should be installed in sys:Prefs:\n")
- (help "GVPIOCtrl - controls default serial and\n"
- " parallel port preferences.\n"
- "GVPSerial - controls serial port default\n"
- " setting for items like baud rate,\n"
- " buffer size, etc.\n"
- @copyfiles-help))
-
- ; Install SetDevice command. Use CopyLib so that version numbers are checked.
- (copylib (source (tackon disklab2 "GVP/IO/SetDevice")) (dest (tackon target "c"))
- (infos) (confirm)
- (prompt "Shall I install the SetDevice command?")
- (help "You need SetDevice in order to set the IOExtender "
- "parallel and serial ports as system defaults.\n\n"
- @copylib-help))
-
- ; Alter user-startup and add SetDevice.
- (startup "SetDevice"
- (prompt "Would you like the ability to redirect output "
- "to the default parallel or serial port to the "
- "IOExtender's parallel or serial port? If so, "
- "Click 'Proceed'.")
- (help "This will automatically check the settings "
- "created by the GvpIOControl program, and if "
- "indicated, it will redirect the standard parallel "
- "or serial port output to the ports on the"
- "IOExtender. ")
- (command "run >nil: c:SetDevice"))
-
- ; Alter user-startup and add Binddrivers.
- (if (= @user-level 2)
- (
- (startup "Binddrivers"
- (prompt "If you do not already execute the command "
- "Binddrivers in the s:startup-sequence, would "
- "you like to add it now? If so, "
- "Click 'Proceed'.")
- (help "This will automatically launch the drivers for "
- "the IOExtender's onboard parallel and serial ports "
- "everytime your Amiga is powered-on or re-booted.\n")
- (command "Binddrivers"))
- ))
-
- ; For automatic end-of-script message displaying the name of
- ; the place where the software was installed...
- (set @default-dest target)
-